<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
	http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
	<context-param>

		<param-name>contextConfigLocation</param-name>

		<param-value>/WEB-INF/conf/spring/*.xml</param-value>

	</context-param>

	<context-param>

		<param-name>log4jConfigLocation</param-name>

		<param-value>WEB-INF/conf/log/log4j.properties</param-value>

	</context-param>

	<context-param>
		<param-name>log4jRefreshInterval</param-name>
		<param-value>15000</param-value>
	</context-param>

	<context-param>

		<param-name>org.apache.tiles.CONTAINER_FACTORY</param-name>
		<param-value>
			org.apache.struts2.tiles.StrutsTilesContainerFactory
		</param-value>
	</context-param>
	<context-param>
		<param-name>
			org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
		<param-value>/WEB-INF/tiles/tiles.xml</param-value>
	</context-param>
	<listener>
		<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
	</listener>


	<listener>

		<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>

	</listener>

	<!-- Listener contextConfigLocation -->

	<listener>

		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

	</listener>
	<listener>
		<listener-class>
			org.springframework.web.context.request.RequestContextListener</listener-class>
	</listener>
	<filter>
		<filter-name>Set Character Encoding</filter-name>
		<filter-class>com.jd.ty.web.util.SetCharacterEncodingFilter</filter-class>
		<init-param>
			<param-name>encoding</param-name>
			<param-value>UTF-8</param-value>
		</init-param>
	</filter>
	<filter-mapping>
		<filter-name>Set Character Encoding</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	<filter>
		<filter-name>tyui</filter-name>
		<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
		<init-param>
			<param-name>config</param-name>
			<param-value>
				struts-default.xml,struts-plugin.xml,struts.xml
			</param-value>
		</init-param>
	</filter>
	<filter-mapping>
		<filter-name>tyui</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>


	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.jsp</welcome-file>
	</welcome-file-list>
	<!--
		<error-page> <error-code>500</error-code>
		<location>/WEB-INF/pages/error.jsp</location> </error-page>
	-->

</web-app>
